<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Capstone - Account</title>
	</head>
	<body>
		<h2>Account</h2>
		<form method="POST" action="Account">
			<input type="hidden" name="crudType" value="update" />
			<label>Username</label> 
				<input type="text" name="username" value=${user.getUsername() } /> 
			<label>Email</label> 
				<input type="text" name="email" value=${user.getEmail() } />
			<label>Confirm Email</label> 
				<input type="text" name="emailconfirm"/>
			<label>Password</label> <input type="password" name="password" />
			<label>Confirm Password</label> 
				<input type="password" name="passwordconfirm"/>
			<label>First Name</label> 
				<input type="text" name="fname" value=${user.getFname() } />
			<label>Last Name</label> 
				<input type="text" name="lname" value=${user.getLname() } />
			<input type="submit" value="Update Account" />
		</form>
		<!--
		<form method="POST" action="DeviceServlet">
			<input type="hidden" name="crudType" value="create"/>
			<label>IP Address</label><input type="text" name="ip"/>
			<input type="submit" value="Add Device"/>
		</form>
		<form method="POST" action="DeviceServlet">
			<input type="hidden" name="crudType" value="delete"/>
			<label>IP Address</label><input type="text" name="ip"/>
			<input type="submit" value="Remove Device"/>
		</form>
		-->
	</body>
</html>